package typedef

var (
	VERBOSE = LoggerTypeInfo{"VERBOSE", 0xffffff}
	DEBUG   = LoggerTypeInfo{"DEBUG", 0x0000ff}
	INFO    = LoggerTypeInfo{"INFO", 0x00ff00}
	WARN    = LoggerTypeInfo{"WARN", 0xff00ff}
	ERROR   = LoggerTypeInfo{"ERROR", 0xff0000}
	ASSERT  = LoggerTypeInfo{"ASSERT", 0xffff00}
)

type LoggerTypeInfo struct {
	Name    string
	Display uint
}

type LogConfig struct {
	Handel LogHandle
	Config map[string][]string
}

type LoggerRunInfo struct {
	File string
	Line int
	Func string
}

type LoggerInfo struct {
	Info      ModuleInfo
	Type      LoggerTypeInfo
	Run       LoggerRunInfo
	Timestamp int64
	Message   interface{}
}

type ErrInfo struct {
	Info ModuleInfo
	Err  error
}

type CommInfo struct {
	Info    ModuleInfo
	Message interface{}
}
